package Car_species;


import Car.Car.Car;

public class Kc extends Car {

    private int Passenger_size;

    @Override
    public void setPassenger_size(int passenger_size) {
        this.Passenger_size = passenger_size;
    }

    @Override
    public void setCarry_size(double carry_size) {

    }

    @Override
    public double getCarry_size() {
        return 0;
    }

    @Override
    public int getPassenger_size() {
        return Passenger_size;
    }

    @Override
    public String toString() {
        return "车名:" + this.getName() + "; 载客人数" + this.Passenger_size + "人;  价格为:" + this.getPrice();
    }
}
